<template>
    <el-form :model="form">
    <el-input placeholder="搜索关键词" v-model.trim="form.keywords" class="input-with-select">
        <template #prepend>
            <el-radio v-model="form.searchType" label="title" size="mini">标题</el-radio>
            <el-radio v-model="form.searchType" label="content" size="mini">内容</el-radio>
        </template>
        <template #append>
            <el-button @click="search">
                <unicon name="search"></unicon>
            </el-button>
        </template>
    </el-input></el-form>
</template>

<script>
export default {
    props:{
        form:{type:Object},
        search:{type:Function}
    }

}
</script>

<style>
</style>